package com.alex.springboot.config;

import lombok.Data;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;
import java.util.Map;

@ConfigurationProperties(prefix = "lucy")
@Component
@Data
@ToString
public class LucyProperties {
    private String name;
    private Integer age;
    private Double salary;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date birthDay;
    private Boolean female;
    private Integer random;
    private Map<String, String> map;
    private List<String> list;
}
